.class Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;
.super Ljava/lang/Object;
.source "PullToZoomExpandableListView.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "ScalingRunnable"
.end annotation


# instance fields
.field mDuration:J

.field mIsFinished:Z

.field mScale:F

.field mStartTime:J

.field final synthetic this$0:Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;


# direct methods
.method constructor <init>(Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;)V
    .registers 3
    .param p1, "this$0"    # Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;

    .prologue
    .line 321
    iput-object p1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->this$0:Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 325
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->mIsFinished:Z

    return-void
.end method


# virtual methods
.method public abortAnimation()V
    .registers 2

    .prologue
    .line 332
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->mIsFinished:Z

    .line 333
    return-void
.end method

.method public isFinished()Z
    .registers 2

    .prologue
    .line 328
    iget-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->mIsFinished:Z

    return v0
.end method

.method public run()V
    .registers 10

    .prologue
    const/high16 v8, 0x3f800000

    .line 346
    iget-boolean v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->mIsFinished:Z

    if-nez v4, :cond_55

    iget v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->mScale:F

    float-to-double v4, v4

    const-wide/high16 v6, 0x3ff0000000000000L

    cmpl-double v4, v4, v6

    if-lez v4, :cond_55

    .line 347
    invoke-static {}, Landroid/os/SystemClock;->currentThreadTimeMillis()J

    move-result-wide v4

    long-to-float v0, v4

    .line 348
    .local v0, "currentTime":F
    iget-wide v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->mStartTime:J

    long-to-float v4, v4

    sub-float v4, v0, v4

    iget-wide v6, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->mDuration:J

    long-to-float v5, v6

    div-float v1, v4, v5

    .line 350
    .local v1, "normalizedTime":F
    iget v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->mScale:F

    iget v5, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->mScale:F

    sub-float/2addr v5, v8

    .line 351
    # getter for: Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->sInterpolator:Landroid/view/animation/Interpolator;
    invoke-static {}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->access$200()Landroid/view/animation/Interpolator;

    move-result-object v6

    invoke-interface {v6, v1}, Landroid/view/animation/Interpolator;->getInterpolation(F)F

    move-result v6

    mul-float/2addr v5, v6

    sub-float v3, v4, v5

    .line 353
    .local v3, "scale":F
    iget-object v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->this$0:Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;

    # getter for: Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;
    invoke-static {v4}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->access$000(Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;)Landroid/widget/FrameLayout;

    move-result-object v4

    invoke-virtual {v4}, Landroid/widget/FrameLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v2

    .line 355
    .local v2, "params":Landroid/view/ViewGroup$LayoutParams;
    cmpg-float v4, v3, v8

    if-gtz v4, :cond_56

    .line 356
    const/4 v4, 0x1

    iput-boolean v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->mIsFinished:Z

    .line 357
    iget-object v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->this$0:Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;

    # getter for: Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderHeight:I
    invoke-static {v4}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->access$100(Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;)I

    move-result v4

    iput v4, v2, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 362
    :goto_47
    iget-object v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->this$0:Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;

    # getter for: Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;
    invoke-static {v4}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->access$000(Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;)Landroid/widget/FrameLayout;

    move-result-object v4

    invoke-virtual {v4, v2}, Landroid/widget/FrameLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 364
    iget-object v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->this$0:Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;

    invoke-virtual {v4, p0}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->post(Ljava/lang/Runnable;)Z

    .line 366
    .end local v0    # "currentTime":F
    .end local v1    # "normalizedTime":F
    .end local v2    # "params":Landroid/view/ViewGroup$LayoutParams;
    .end local v3    # "scale":F
    :cond_55
    return-void

    .line 359
    .restart local v0    # "currentTime":F
    .restart local v1    # "normalizedTime":F
    .restart local v2    # "params":Landroid/view/ViewGroup$LayoutParams;
    .restart local v3    # "scale":F
    :cond_56
    iget-object v4, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->this$0:Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;

    # getter for: Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderHeight:I
    invoke-static {v4}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->access$100(Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;)I

    move-result v4

    int-to-float v4, v4

    mul-float/2addr v4, v3

    float-to-int v4, v4

    iput v4, v2, Landroid/view/ViewGroup$LayoutParams;->height:I

    goto :goto_47
.end method

.method public startAnimation(J)V
    .registers 6
    .param p1, "duration"    # J

    .prologue
    .line 336
    invoke-static {}, Landroid/os/SystemClock;->currentThreadTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->mStartTime:J

    .line 337
    iput-wide p1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->mDuration:J

    .line 338
    iget-object v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->this$0:Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;

    # getter for: Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderContainer:Landroid/widget/FrameLayout;
    invoke-static {v0}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->access$000(Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;)Landroid/widget/FrameLayout;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->getBottom()I

    move-result v0

    int-to-float v0, v0

    iget-object v1, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->this$0:Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;

    # getter for: Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->mHeaderHeight:I
    invoke-static {v1}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->access$100(Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;)I

    move-result v1

    int-to-float v1, v1

    div-float/2addr v0, v1

    iput v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->mScale:F

    .line 339
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->mIsFinished:Z

    .line 341
    iget-object v0, p0, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView$ScalingRunnable;->this$0:Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;

    invoke-virtual {v0, p0}, Lcom/zuiapps/suite/utils/ui/PullToZoomExpandableListView;->post(Ljava/lang/Runnable;)Z

    .line 342
    return-void
.end method
